package com.easylinkin.linkappapi.project.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.easylinkin.linkappapi.tenant.entity.LinkappTenant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 工点信息表
 *
 * @author xy
 * @since 2025-06-10
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("rail_project_point")
public class ProjectPoint extends Model<ProjectPoint> implements Serializable{
    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    private String id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id_")
    private String tenantId;

    /**
     * 工点名称
     */
    @TableField(value = "point_name_")
    private String pointName;

    /**
     * 工点负责人id
     */
    @TableField(value = "point_leader_id_")
    private String pointLeaderId;

    /**
     * 工点负责人姓名
     */
    @TableField(value = "point_leader_name_")
    private String pointLeaderName;

    /**
     * 施工等级：1：Ⅰ级 2：Ⅱ级
     */
    @TableField(value = "point_level_")
    private Integer pointLevel;

    /**
     * 施工类别：1：A类 2：B类
     */
    @TableField(value = "point_type_")
    private Integer pointType;

    /**
     * 监测等级：1：Ⅰ级 2：Ⅱ级
     */
    @TableField(value = "monitor_level_")
    private Integer monitorLevel;

    /**
     * 工点地址
     */
    @TableField(value = "point_address_", updateStrategy = FieldStrategy.IGNORED)
    private String pointAddress;

    /**
     * 是否高风险工点： 0：否 1：是
     */
    @TableField(value = "is_high_risk_")
    private Integer isHighRisk;

    /**
     * 是否有危大工程： 0：否 1：是
     */
    @TableField(value = "is_danger_project_")
    private Integer isDangerProject;

    /**
     * 危险工程名称
     */
    @TableField(value = "danger_project_name_",updateStrategy =  FieldStrategy.IGNORED)
    private String dangerProjectName;

    /**
     * 删除状态 0：未删除 1：已删除
     */
    @TableField(value = "delete_state")
    @TableLogic(value = "0", delval = "1")
    private Integer deleteState;

    /**
     * 创建人id
     */
    @TableField(value = "create_id_")
    private Long createId;

    /**
     * 创建日期
     */
    @TableField(value = "create_time_")
    private Date createTime;

    /**
     * 修改人id
     */
    @TableField(value = "modify_id_")
    private Long modifyId;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time_")
    private Date modifyTime;

    /**
     * 备注
     */
    @TableField(value = "remark_")
    private String remark;

}
